/*
 * If.cpp
 *
 *  Created on: 06/05/2010
 *      Author: rodolfo
 */

#include "If.h"

If::If() : SelectionStatement ( ifStm )
{

}

If::If ( Expression *condition, Statement *command ) :
        SelectionStatement ( condition, command, ifStm )
{
}

If::If ( Expression *condition, Statement *command, Else *elseStatement ) :
        SelectionStatement ( condition, command, ifStm ), elseStatement ( elseStatement )
{
}

If::~If()
{
    if ( elseStatement != 0 )
        delete elseStatement;
}
